<?php
declare (strict_types=1);

namespace app\mall\controller;
use app\mall\model\MallBraSize;
use think\admin\Controller;
use think\admin\extend\DataExtend;
use think\admin\helper\QueryHelper;

/**
 * bra size管理
 * @class Cate
 * @package plugin\wemall\controller\shop\goods
 */
class Size extends Controller
{
   

    /**
     * bra size管理
     * @auth true
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function index()
    {
        MallBraSize::mQuery($this->get)->layTable(function () {
            $this->title = "bra size管理";
        }, static function (QueryHelper $query) {
            $query->like('size');
        });
    }


    /**
     * 添加bra size
     * @auth true
     */
    public function add()
    {
        MallBraSize::mForm('form');
    }

    /**
     * 编辑bra size
     * @auth true
     */
    public function edit()
    {
        MallBraSize::mForm('form');
    }




    /**
     * 删除bra size
     * @auth true
     */
    public function remove()
    {
        MallBraSize::mDelete();
    }


}